<?php
    
    # Deny direct access
    defined('INDEX_CHECK') or die;

    # Template config
    $config = array(
        'theme_url'  =>  'themes/mrc/'
    );

    $config['full'] = 0;

    if($_REQUEST['file'] == 'Forum'){
        $config['full'] = 1;
    }

    function top(){
        global $nuked, $config;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title><?php echo $nuked['name'] . ' - ' . $nuked['slogan']; ?></title>
<meta name="keywords" content="<?php echo $nuked['keywords']; ?>" />
<meta name="description" content="<?php echo $nuked['description']; ?>" />
<link rel="shortcut icon"  href="favicon.ico" />
<link href="http://fonts.googleapis.com/css?family=Comfortaa" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Arvo" rel="stylesheet" type="text/css" />
<link href="<?php echo $config['theme_url']; ?>style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $config['theme_url']; ?>menu.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.18.custom.css" rel="stylesheet" />
<script src="js/cufon-yui.js" type="text/javascript"></script>
						<script src="js/Starcraft_400.font.js" type="text/javascript"></script>
						<script type="text/javascript">
						Cufon.replace('span.sc2font,#sidebar h2,.post .title a,#sc2font,.sc2font'); 
						</script>
						<script src="js/Starcraft_400.font.js" type="text/javascript"></script>						
						<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
						<script type="text/javascript" src="js/jquery-ui-1.8.18.custom.min.js"></script>
</head>
<body>

<div id="wrapper">
	<div id="header-wrapper">
		<div id="header">
			<!--h1><a href="index.php"><?php echo $nuked['name']; ?></a></h1-->
				
			
		</div>
	</div>
	<!-- end #header -->




	<div id="menu-wrapper">
		<div id="menu">
		
		<div id="wrapper_menu"><!-- BEGIN MENU WRAPPER -->


    <ul class="menu menu_black"><!-- BEGIN MENU -->
       
		<li><a href="index.php" class="drop"><span class="sc2font">Accueil</span></a><!-- Begin 1 column Item -->
        
        
            <div class="dropdown_1column"><!-- Begin 1 column container -->
            
            
                <div class="col_1 firstcolumn">
                
                    <ul class="levels">
                    
                        <li><a href="#" class="parent">Principal</a>
                            <ul>
                                <li><a href="http://localhost/mrc-sc2-replay/index.php?file=News">News</a></li>
                                <li><a href="http://localhost/mrc-sc2-replay/index.php?file=Sections">Tutos</a></li>
                                <li><a href="http://localhost/mrc-sc2-replay/index.php?file=Calendar">Calendrier</a></li>
								<li><a target="_blank" href="http://mrc.xooit.com/f197-Le-Recrutement-Starcraft-2.htm">Nous rejoindre</a></li>
								
                            </ul>
                        </li>
                                                
                        <li><a href="#" class="parent">Team</a>
                            <ul>
								<li><a href="http://localhost/mrc-sc2-replay/index.php?file=Team">Teams</a></li>
                                <li><a href="http://localhost/mrc-sc2-replay/index.php?file=Members">Membres</a></li>
                                
                                
                            </ul>
                        </li>
						
						
                                         
                        <li><a href="#" class="parent">Divers</a>
                            <ul>
								<li><a href="http://localhost/mrc-sc2-replay/index.php?file=Download">T&eacutel&eacutechargement</a></li>
                                <li><a href="http://localhost/mrc-sc2-replay/index.php?file=Links">Liens</a></li>
                                <li><a href="http://localhost/mrc-sc2-replay/index.php?file=Defy">Nous d&eacutefier</a></li>
                                <li><a href="http://localhost/mrc-sc2-replay/index.php?file=Contact">Contact</a></li>
								
                            </ul>
                        </li>
                        
                        
                    </ul>   
                     
                </div>
        
            
            </div><!-- End 1 column container -->
            
        
        </li>
		<li class="nodrop"><a href="http://localhost/mrc-sc2-replay/index.php?file=Wars"><span class="sc2font">Matchs</span></a></li>
		<li class="nodrop"><a href="http://localhost/mrc-sc2-replay/index.php?file=sc2replay"><span class="sc2font">Replays</span></a></li>
		<li class="nodrop"><a href="http://localhost/mrc-sc2-replay/index.php?file=Coach"><span class="sc2font">Coaching</span></a></li>
		<li class="nodrop"><a target="_blank" href="http://mrc.xooit.com"><span class="sc2font">Forum</span></a></li>
        
             
   
        <!-- End 1 column Item -->
    
    


        
    
    </ul><!-- END MENU -->


</div>
			<!--ul>
				<li class="current_page_item"><a href="index.php" title="Accueil">Accueil</a></li>
				<li><a href="?file=Forum" title="Forum">Forum</a></li>
				<li><a href="?file=Gallery" title="Galerie">Galerie</a></li>
				<li><a href="?file=Links" title="Mes liens">Liens</a></li>
				<li><a href="?file=Contact" title="Me contacter">Contact</a></li>
				<li><a href="?file=Admin" rel="nofollow" title="Administration">Administration</a></li>
			</ul-->
		</div>
	</div>
	<!-- end #menu -->
	<div id="page">
		<div id="page-bgtop<?php if($config['full'] == 1) echo '2'; ?>">
			<div id="page-bgbtm<?php if($config['full'] == 1) echo '2'; ?>">
				<div id="page-content">
					<div id="content<?php if($config['full'] == 1) echo '_forum'; ?>">
<?php
        if($config['full'] != 1)
            get_blok('centre');
    }

    function footer(){
        global $nuked, $config;
        if($config['full'] != 1)
            get_blok('bas');

?>
						<div style="clear: both;">&nbsp;</div>
					</div><?php if($config['full'] != 1){ ?>
					<!-- end #content -->
					<div id="sidebar">
						<ul>
                            <?php get_blok('droite'); ?>
						</ul>
					</div><?php } ?>
					<!-- end #sidebar -->
				</div>
				<div style="clear: both;">&nbsp;</div>
			</div>
		</div>
	</div>
	<!-- end #page -->
</div>
<div id="footer">
	
    <p><a href="http://www.holycow.fr">Tonio&copy2012</a> - <a href="http://mrc.xooit.com">mrc.xooit.com</a>
</div>
<!-- end #footer -->
</body>
</html>
<?php
    exit();
    }

    function news($data){
?>
<div class="post">
    <h2 class="title"><a href="?file=News&amp;op=index_comment&amp;news_id=<?php echo $data['id']; ?>"><?php echo $data['titre']; ?></a></h2>
    <p class="meta">Post&eacute; par <a href="index.php?file=Members&amp;op=detail&amp;autor=<?php echo urlencode($data['auteur']); ?>"><?php echo $data['auteur']; ?></a>, le <?php echo $data['date']; ?>
        &nbsp;&bull;&nbsp; <a href="?file=News&amp;op=index_comment&amp;news_id=<?php echo $data['id']; ?>" class="comments">Comments (<?php echo $data['nb_comment']; ?>)</a></p>
    <div class="entry">
        <?php echo $data['image'] . $data['texte']; ?>
    </div>
</div>
<?php
    }

    function block_centre($block){
?>
<div class="post">
    <h2 class="title"><?php echo $block['titre']; ?></h2>
    <div class="entry">
        <?php echo $block['content']; ?>
    </div>
	<br />
</div>
<?php
    }

    function block_bas($block){
?>
<div class="post">
    <h2 class="title"><?php echo $block['titre']; ?></h2>
    <div class="entry">
        <?php echo $block['content']; ?>
    </div>
</div>
<?php
    }

    function block_droite($block){
?>
<li>
    <h2><?php echo $block['titre']; ?></h2>
    <div><?php echo $block['content']; ?></div>
	<br /><br />
</li>
<?php
    }

    function opentable(){}
    function closetable(){}

?>